<html>
	<body>
		<h3>
			用户修改
		</h3>
		<form action="${rc.contextPath}/screener/doUpdate" method="post" name="updateForm">
			<input type="hidden" name="userId" value="${userId }">
			<table>
				<tr>
					<td>
						姓名:
					</td>
					<td>
						<input type="text" name="userName" id="userName" value="${userName }"/>
					</td>
				</tr>
				<tr>
					<td>
						密码:
					</td>
					<td>
						<input type="password" name="password" id="password"/>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<input type="button" value="修改" onClick="update();return false;"/>
					</td>
				</tr>
			</table>
		</form>
		<script type="text/javascript">
		function update(){
			var userName = document.getElementById("userName").value;
			var password = document.getElementById("password").value;
			
			if(userName == ''){
				alert("姓名不能为空");
				return;
			}
			if(password == ''){
				alert("密码不能为空");
				return ;
			}
			document.updateForm.submit();
		}
	</script>
	</body>
</html>
